/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.gestaoFuneraria.view;

import br.com.gestaoFuneraria.DAO.AssociadoDAO;
import br.com.gestaoFuneraria.DAO.DependenteDAO;
import br.com.gestaoFuneraria.DAO.LoculoDAO;
import br.com.gestaoFuneraria.modelo.Associado;
import br.com.gestaoFuneraria.modelo.Dependente;
import br.com.gestaoFuneraria.modelo.Loculo;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Fatec
 */
public class main {

    public static void main(String[] args){
        try{
        Dependente d = new Dependente(5, "Jonas", "567896", "456789", "12/12/12", "m");
        DependenteDAO ddao = new DependenteDAO();
        List<Dependente> lst = ddao.getLista();
        for (int i = 0; i < lst.size(); i++) {
            Dependente a = lst.get(i);
            System.out.println(a.getNome());
        }
        }catch(Exception e){
            System.out.println(e.getMessage());
        }
    }
}
